package com.oj.api.core.service;

import com.oj.api.core.CoreApi;
import com.oj.api.core.domain.JudgeInfo;
import com.oj.common.ICrudService;
import com.oj.common.InfoPage;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * 评测服务的接口
 * Created by Bing on 2018/5/4.
 */
@FeignClient(value= CoreApi.APPID,path="/"+CoreApi.BEAN_JUDGE_SERVICE)
public interface IJudgeService extends ICrudService<JudgeInfo>{


    /**
     * 题目评测
     * @param judgeInfo
     * @return
     */
    @RequestMapping(value=CoreApi.JUDGE,method = RequestMethod.POST)
    JudgeInfo judge(JudgeInfo judgeInfo);

    @PostMapping("/findRankOfProblemSet")
    InfoPage findRankOfProblemSet(JudgeInfo judgeInfo);
}
